package com.hiof.moraa.server.service.model;

/**
 *
 * @author Bergy
 */
public abstract class GeoPoint {
    private double lat;
    private double lng;
    private double altitude;

    public GeoPoint(double lat, double lng, double altitude) {
        this.lat = lat;
        this.lng = lng;
        this.altitude = altitude;
    }

    public double getAltitude() {
        return altitude;
    }

    public void setAltitude(double altitude) {
        this.altitude = altitude;
    }

    public double getLat() {
        return lat;
    }
    
    protected double getLatInRadian(){
        return Math.toRadians(getLat());
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public double getLng() {
        return lng;
    }
    
    protected double getLngInRadian(){
        return Math.toRadians(getLng());
    }

    public void setLng(double lng) {
        this.lng = lng;
    }
    
    public abstract CartesianCoordinate toCartersianCartesianCoordinate();
}
